package mySingleQueue;

public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        //测试offer
        System.out.println("==========测试offer==========");
        System.out.println(myQueue.offer(1));
        System.out.println(myQueue.offer(2));
        System.out.println(myQueue.offer(3));
        System.out.println(myQueue.offer(4));

        System.out.println("==========测试peek==========");
        System.out.println(myQueue.peek());

        System.out.println("==========测试poll==========");
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());

        System.out.println("==========测试getSize==========");
        System.out.println(myQueue.getSize());
    }
}
